package org.jeecg.modules.icms.invoice.dto;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
@TableName("icms_invoice_detail")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="icms_invoice_detail对象", description="发票行表")
public class IcmsInvoiceDetailDto {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**发票头id*/
    @Excel(name = "发票头id", width = 15)
    @ApiModelProperty(value = "发票头id")
    private String invoiceHeaderId;
    /**零件编码*/
//	@Excel(name = "零件编码", width = 15)
    @Excel(name = "件号", width = 15)
    @ApiModelProperty(value = "零件编码")
    private String partNo;
    /**零件名称*/
    @Excel(name = "零件名称", width = 15)
    @ApiModelProperty(value = "零件名称")
    private String partName;
    /**数量*/
    @Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private String qty;
    /**单位*/
    @Excel(name = "单位", width = 15)
    @ApiModelProperty(value = "单位")
    private String unit;
    /**零件英文名*/
//	@Excel(name = "零件英文名", width = 15)
    @Excel(name = "英文", width = 15)
    @ApiModelProperty(value = "零件英文名")
    private String partNameEn;
    /**财务性质*/
    @Excel(name = "账务性质", width = 15)
    @ApiModelProperty(value = "财务性质")
    private String accountNature;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**开票含税单价（元）*/
    @Excel(name = "开票含税单价（元）", width = 15)
    @ApiModelProperty(value = "开票含税单价（元）")
    private String kphsdj;
    /**无税单价（元）*/
    @Excel(name = "无税单价（元）", width = 15)
    @ApiModelProperty(value = "无税单价（元）")
    private String wsdj;
    /**无税金额（元）*/
    @Excel(name = "无税金额（元）", width = 15)
    @ApiModelProperty(value = "无税金额（元）")
    private String wsje;
    /**税率(%)*/
    @Excel(name = "税率%", width = 15)
    @ApiModelProperty(value = "税率(%)")
    private String taxRate;
    /**税额(元)*/
    @Excel(name = "税额（元）", width = 15)
    @ApiModelProperty(value = "税额(元)")
    private String taxAmount;
    /**价税合计(元)*/
    @Excel(name = "价税合计（元）", width = 15)
    @ApiModelProperty(value = "价税合计(元)")
    private String jshj;
    /**开票备注*/
    @Excel(name = "开票备注", width = 15)
    @ApiModelProperty(value = "开票备注")
    private String invoiceRemark;
    /**是否报关*/
    @Excel(name = "是否报关", width = 15, dicCode = "customs_flag")
    @Dict(dicCode = "customs_flag")
    @ApiModelProperty(value = "是否报关")
    private String customsFlag;
}


